function formatTime(value) {
	if(value) {
		// let date = new Date(value * 1000)	// 时间戳为秒：10位数
		let date = new Date(Number(value))	// 时间戳为毫秒：13位数
		let year = date.getFullYear()
		let month = date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : date.getMonth() + 1
		let day = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate()
		let hour = date.getHours() < 10 ? `0${date.getHours()}` : date.getHours()
		let minute = date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes()
		let second = date.getSeconds() < 10 ? `0${date.getSeconds()}` : date.getSeconds()
    return `${year}-${month}-${day} ${hour}:${minute}:${second}`
	} else {
		return ''
	}
}
export   {
  formatTime
}